package com.ucode.model.hrm.convert;

import com.ucode.model.hrm.HrmCustomerCompany;
import com.ucode.model.hrm.form.HrmCustomerCompanyForm;
import com.ucode.model.hrm.vo.HrmCustomerCompanyVO;
import com.ucode.tool.base.Paginator;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface HrmCustomerCompanyConvert {

    HrmCustomerCompanyConvert INSTANCE = Mappers.getMapper(HrmCustomerCompanyConvert.class);

    HrmCustomerCompany convert(HrmCustomerCompanyForm form);

    HrmCustomerCompanyVO convert(HrmCustomerCompany bean);

    Paginator<HrmCustomerCompanyVO> convertPage(Paginator<HrmCustomerCompany> page);

    List<HrmCustomerCompanyVO> convertList(List<HrmCustomerCompany> list);

}


